package com.twetec.cms.model.po.system;

import com.baomidou.mybatisplus.annotation.*;
import com.twetec.cms.model.po.base.BasePO;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wugaojian
 * @title: CmsRolePO
 * @projectName SBProject-CMSServer
 * @description: 角色表
 * @date 2022/2/9/ 10:53
 */
@TableName("CMS_ROLE")
public class CmsRolePO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "NAME")
    private String name;

    @TableField(value = "REMARK")
    private String remark;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtCreate;

    @TableField(value = "CREATOR_ID")
    private Long creatorId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(value = "MODIFIER_ID")
    private Long modifierId;

    @TableLogic
    @TableField(value = "IS_DELETED")
    private Integer isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getModifierId() {
        return modifierId;
    }

    public void setModifierId(Long modifierId) {
        this.modifierId = modifierId;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "CmsRolePO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", creatorId=" + creatorId +
                ", gmtModified=" + gmtModified +
                ", modifierId=" + modifierId +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
